Two buggy tests, two helper files

These PHP helper files don't set the right status text in HTTP responses when running on w3c-test.org, causing a number of tests to give bogus failures. I'm attempting to fix it but have to way to test on w3c-test.org so I'm just crossing fingers..

Also fixed two genuine test bugs.