Added unit test for `Loader`.