Test passphrases are correctly checked