Add mock macro using patched meck
Clean up properly if the test case exits