finished writing tests for filtering methods of taskcontroller