tests: prevent compiler warning when comparing floats