added credentials_test.go