File loader and tests [skip ci]