register plugins in main program, not just tests