Tesco secretly been trialling a scheme to give away free food that would otherwise be binned for more than four months.