Add UserTest class and refactor code

- Add UserTest class with Can_list_all_users test method
- Refactor UserService and UserController classes to make them more testable
- Add Configure() method in SessionFactory class to remove test errors