Testing the working of a FilterIterator