py/tests: hpd test