Added macros to allow for easier mocking of functions on a class