Scala Common Enrich: added tests for getLoader function (closes #558)