more rigorous tests for mocking