Add tests to ensure that refs/atoms persist

These tests check that refs and atoms persist after a client disconnects. The tests pass, so this closes #2.