add test for the locked key, fix #2