improve test coverage of load_attributes_for