Fixed the problem with ItemState enum

Fixed the issue with the ItemState enum which didn't contain an "All" value for ItemState enum. Added the value, wrote an integration test. This fixes issue #517.