Modify test code foor java sources