Add JUnit test for CatgraphConverter, while correcting several errors