tests: use our own macros for the tests main function