added tests for optimistic concurrency exception