fix tests/hbhelper.php to use new interface