fixed floating point comparison in tests.