Fix: Correct a typo in the error message in tests

I didn't create a ticket because this is trivial.