Added reflect support
Added test for basic macros