Add unit tests in an attempt to prevent github issue #6 from occurring
again (clientConn is closed and program crashes on nil pointer)