java runtime tests ported