Add test.rb and modify test.java