updated unit test to use Mocker