fixed race condition in mergeAppend
taking stock of query tests