testJM modified