add testNewDocumentHasCurrentRevision() which detects a major issue I'm seeing in Grocery Sync
Attempting to fix testNewDocumentHasCurrentRevision().  This didn't fix the exact problem, but is a useful addition anyway.
Fix for testNewDocumentHasCurrentRevision().