fix generate auth string in test mode