diff --git a/test/controls/control_value.cpp b/test/controls/control_value.cpp
index c2f9fc4826..399f4b2bb1 100644
--- a/test/controls/control_value.cpp
+++ b/test/controls/control_value.cpp
@@ -272,19 +272,21 @@ protected:
 		/*
 		 * Float type.
 		 */
-		value.set(-0.42f);
+		constexpr float fValue = -0.75;
+
+		value.set(fValue);
 		if (value.isNone() || value.isArray() ||
 		    value.type() != ControlTypeFloat) {
 			cerr << "Control type mismatch after setting to float" << endl;
 			return TestFail;
 		}
 
-		if (value.get<float>() != -0.42f) {
+		if (value.get<float>() != fValue) {
 			cerr << "Control value mismatch after setting to float" << endl;
 			return TestFail;
 		}
 
-		if (value.toString() != "-0.420000") {
+		if (value.toString() != "-0.750000") {
 			cerr << "Control string mismatch after setting to float" << endl;
 			return TestFail;
 		}
diff --git a/test/ipa/libipa/histogram.cpp b/test/ipa/libipa/histogram.cpp
index 77ff31a6db..504c9ed319 100644
--- a/test/ipa/libipa/histogram.cpp
+++ b/test/ipa/libipa/histogram.cpp
@@ -46,7 +46,7 @@ protected:
 		ASSERT_EQ(hist.quantile(0.75), 1.5);
 
 		/* Test quantile smaller than the smallest histogram step. */
-		ASSERT_EQ(hist.quantile(0.001), 0.002);
+		ASSERT_EQ(hist.quantile(0.125), 0.25);
 
 		ASSERT_EQ(hist.interQuantileMean(0.0, 1.0), 1.0);
 		ASSERT_EQ(hist.interQuantileMean(0.0, 0.5), 0.5);
@@ -56,8 +56,8 @@ protected:
 		ASSERT_EQ(hist.interQuantileMean(0.25, 0.75), 1.0);
 
 		/* Test small ranges at the borders of the histogram. */
-		ASSERT_EQ(hist.interQuantileMean(0.0, 0.1), 0.1);
-		ASSERT_EQ(hist.interQuantileMean(0.9, 1.0), 1.9);
+		ASSERT_EQ(hist.interQuantileMean(0.0, 0.125), 0.125);
+		ASSERT_EQ(hist.interQuantileMean(0.875, 1.0), 1.875);
 
 		return TestPass;
 	}
