Changing missing element tests to assert on the exception type and not on the message.