Fixed the problem with ItemState enum

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