Check that we get the right error back in a record when authentication fails.