abstracted filter size / hash count strategy and reduced code duplication in tests