changed assertEqual to assertAlmostEqual with floats