Small improvements in macro's

Hello,

In our project we use ctest.h as an auto test framework for C-based modules. Inside the project we've extended the ctest.h version from the master branch with some extra features/improvements.
 
We thought that these improvements might be useful for people outside of our organization.

Please look at the changes whether you find them useful as well.

Regards, Dmitry.