mock class test