fixed testmacro