Fix usage of assertEqual on floats

- replace assertEquals by assertEqual for uniformity
- replace assertEqual(a, b) by assertEqual(float_compare(a, b, precision_digits=x), 0)