Tests for #1597
Merge branch 'master' of github.com:spumko/hapi