MAIN-1687 - accessing the user before mocking the db connection