Adds test on Charta classes and fixes #243.