Completed test for loading from a file