DI in User constructor. Using mockery to mock SessionHandler object in test