test: Fix 406 message assertion

Based on whether or not you have credentials or not, the error message
is slightly different.  This patch allows the test to pass in both
cases.