wrote a test for searches