Added tests for ensuring the references between a refresh token and its authentication holder are preserved over import. Minor cleanup of other tests.