Stylistic improvements

Test assertions should be positive
Deduplicate test code
Make test deal gracefully with empty list
Merge pull request #87 from darksuji/etl-fixes

Stylistic improvements