Code-quality nits flagged in review of 2692c66. Mirrors the existing pattern in host_credentials_test.go.
2692c66