Feeds: optimized  var assignment
Feeds: add unit tests
Merge pull request #4460 from patheard/unit-test-feeds

Feeds: add unit tests