adding test that stubs and mocks the compare module