fix test and add one for LoaderTask similar to ImageManagerTest

I expect the test to fail because LoaderTask has a bug.