Speed up -testTokenWithURLAndSecret by removing one nested loop