Since the previous version - I fixed the atomicity test by disabling a chert only optimization - Talked to Olly Betts about the general approach. We didn't come up with a radically different approach than what is here. I think these should probably go in 0.22, as it would be nice to have the test suite run with the newest version of xapian available.