Adding some tests for getErrorHeader function