Adds tests for set_attributes_from_version