Fix a bug in jmx connector
Refactor tests