tests for filterCollection