macro for the tests