Convert tests from SimpleTest to PHPUnit