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