Make unit tests more explicit, use consistent encodings.
Don't use debug assertions to validate API inputs.
Merge pull request #128 from evoskuil/version2

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