Fixed test to compare different approaches to calculating H