For #1510: test write/read back itemsets