fix invalid output format of the item exporter and write some more tests