Small refactoring of PasscodeSetUpTest