Allow multiple expected log substrings in credentials test

Safety check that the fetch (which requires permissions) did not hang
and was not killed by a timeout.
Use equals() rather than == to compare string in test
Merge commit '8e08dd55b05df3531de75380a693722192c36a60' into HEAD