Update tests to make them work without a normal $_SERVER environment