Don't generate secret token in test mode.