Add unit test for utils.loader (closes #2)