fixed example test with real plugin instance instead of dealing with console output