Added test for error ouput