fixed tests for updateLock method