Add test for twice function Invocation In Macro

Test for #41, I'm sorry for imports