add create_unique_filter and tests

(is there a better existing way to do this? i couldn't find one)
newlines
dead comment
Merge pull request #81 from dimagi/unique-filter

add create_unique_filter and tests