fix failing random tests with databasecleaner; add specs