Test case for functions with non-contiguous ranges