Refactor test of UserService
Updated to Symfony 2.3