as this is a test user, the entity could be regularly removed, ie $em->remove($user); $em->flush();