setup mocha tests and failing 2 connection test

this shows the same behavior that @coral has reported
add an index to each instance and include it in debug messages
better test of failing with multiple instances
fix failing tests