Fixed hypothsis insertions in Haff::calculate().
Added HaffTest.