standardize search API in device tests