Add a new test for verify_compat.php, refactor some test classes