I'm guessing that $null is being treated as if a missing a required parameter, and is the same as $hfind(testcase,,0,R)