Fix expected exception message in test.