Fix intermittently failing test due to changing error message.