unable to mock in the tests