attach test for attaching a rekeyed database