[IMP] use float_comapare in test cases to comare values.