Adds attribute exporter and fixes some tests