add a delay to prevent race-condition in test

it seems that sometimes the test gets asking for the key before it's unlocked
so the test hangs while waiting for the password to be entered