OGM-396 Adding more tests
OGM-396 Adding test and fixing bug for state-based optimistic locking
OGM-396 Dealing with attempts to delete an already deleted record
OGM-396 Adding test for optimistic locking check during merging