fixed mocking classes with constructor taking parameters