more unit tests for macros