move class name conversion to loader class; add test