[IMP] tests cases: use float_compare instead of ==