Updated unit test for macros.py