tests for markovized binarized grammars