added tests to Loader