convert registrationCommands in helper to easy test