test password before importing key