[tests] Fixed loadNamespacedClass() test