Add test case for search for a range