Added tests for error and warnings output.