Add macro unit tests