test and implementation for empty collections
Merge pull request #8 from hunterloftis/master

test and implementation for empty collections