fixed a test by adding mocks