Add a test for resource search