Finished tests on optimistic locking