Changing the order of tests to sidestep a PHP segfault