Convert tests to PHPUnit