tests for invalid header