update username tests to expect the real JSON error object