Modified test-jar and jmx script

Signed-off-by: Jinggit <jingghster@gmail.com>