Add test for lock type set.