cleaned up the test code in connected.clj, broke apart the large
function, added doc strings