fix unit tests - add mocking