[PATCH] Add test scripts to to lock and unlock pin