moved collection cleaning from test to database.