dynamically create test for mocks