added unit test for connector

Noticing that Java likes to throw. I predict as I explore JUinit, that I
will mostly be testing for excptions.