Hundreds of prisoners freed early without being tested for Covid-19, MSPs told