Better error message with no tests
This replaces an assert with an actual error, since there are legitimate ways to get to the error in question.
This replaces an assert with an actual error, since there are legitimate ways to get to the error in question.