Merge pull request #128 from evoskuil/version2

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