added jmx; removed redundant code in unit test