Added test case for plugin error handling