Get secret_token working with test environment