Add basic test case for document versioning.