trim dead code and add tests in bloom_filters

trim dead code and add tests in bloom_filters.