fix energy model nosetests (replace assertEqual with assertAlmostEqual
for floats)