add test for unlocking