Fix the error system when error was required and print a green passed if the test passed.