Since the goal of the pull is to change the error message, I think the tests should assert something about the contents of the error, not just its class.