Fixed floating point number comparison in tests (using fabs).