Fixed #47 (Improved error handling of Testing plugin)