Fix tests and use checkbox in settings page for new enable generate random token auth option.