add search for a range and its test