improved jnx_debug tests and rework for free