fix bug where :identifying field wouldn't survive the first connection and add some tests