fix get_class function, was broken in #606
minor enhancements required for easyconfig unit tests
Merge pull request #610 from boegel/get_class_fix

fix get_class function + minor enhancements required for easyconfig unit tests