Added new test cases for Lock model