Implemented MockAction and MockFunction macros