She puts them through individualized tests to determine if they have adequately improved enough to better their afterlife experience.
NBC
The tests are inconclusive, and the Judge and Michael (with a little help from D'Arcy Carden's friendly neighborhood Janet) decide that they have to wipe their memories and put them back on earth to really see if[...]