File assignment fix in load and tests for the same method