Add a JS disconnect test and mock hardware disconnect command.
Merge pull request #272 from voodootikigod/test-disconnect

Add a JS disconnect test and mock hardware disconnect command.