Fix tests when running through AllTests.php