Add tests for versionless optimistic locking