Added test for happinesscalculator.