Add ability to mock remote APIs and extend test coverage of user model