add create_unique_filter and tests

(is there a better existing way to do this? i couldn't find one)