Fix assert statements in vocabcompiler unittests