Added test and documentation for filter(Function)