Simplify and make better hte tests for load_from_file