Fix a problem with the mocking of properties