Testing lock status and change