The Scottish Government made it mandatory to test patients being discharged into care homes on April 21.