Add more Connection tests

More unit tests for #7