test ClassRegistry