added the test for filtering books