converted all test to java