Make connection unit test time based, as discussed in #101