fix test for main by adding an invoker