unit test for Mock