fixc problem on mocking class wit constructor