Write a test for page search