macro for tests