Add test for ClassName.fromClass()