pessimistic, optimistic lock tests added