better test coverage for JTAG devices and fixes