Add test.java and modify test.php