mocking methods and properties