Implemented DAO pattern for UserController test