Introduce JC_HOME validation
Improve plugin unit tests