dia to sml: add tests for classes in packages