Add a pre test hook
Add a macro for setting the hook
Make test compatible with -r
Make CppUTestExtTests run with -r