Don't use debug assertions to validate API inputs, clarify tests.