Added optimistic and pessimistic locking
Increase test coverage