Test adding items
Fix handling of state changes
Fix unicode errors in listing