Add mocking of mongo interface to user API.