[hapi] Fix for 8.0.0-rc1
[hapi] Fix pre 1.9.0 versions in tests