Added tests for loader and util