diff --git a/Framework/Algorithms/test/DetectorEfficiencyCorTest.h b/Framework/Algorithms/test/DetectorEfficiencyCorTest.h
index b52e545d0c1d82e2ca8006936a34ac7f7075cfc7..a2243cb12679e62a75a752bddd3253eb6d9fe654 100644
--- a/Framework/Algorithms/test/DetectorEfficiencyCorTest.h
+++ b/Framework/Algorithms/test/DetectorEfficiencyCorTest.h
@@ -11,6 +11,8 @@
 #include "MantidTestHelpers/WorkspaceCreationHelper.h"
 
 using Mantid::HistogramData::BinEdges;
+using Mantid::HistogramData::Counts;
+using Mantid::HistogramData::CountVariances;
 
 class DetectorEfficiencyCorTest : public CxxTest::TestSuite {
 public:
@@ -117,14 +119,9 @@ private:
     space->getAxis(0)->unit() = UnitFactory::Instance().create("DeltaE");
     Workspace2D_sptr space2D = boost::dynamic_pointer_cast<Workspace2D>(space);
 
-    BinEdges x{0.0, 0.0, 0.0, 0.0, 4.0};
-    // Fill a couple of zeros just as a check that it doesn't get changed
-    std::vector<double> y{10, 11, 12, 0};
-    std::vector<double> e{sqrt(5.0), sqrt(5.0), sqrt(5.0), 0.0};
-
-    space2D->setBinEdges(0, x);
-    space2D->mutableY(0).assign(y.begin(), y.end());
-    space2D->mutableE(0).assign(e.begin(), e.end());
+    space2D->setHistogram(0, BinEdges{0.0, 0.0, 0.0, 0.0, 4.0},
+                          Counts{10, 11, 12, 0},
+                          CountVariances{sqrt(5.0), sqrt(5.0), sqrt(5.0), 0.0});
 
     std::string xmlShape = "<cylinder id=\"shape\"> ";
     xmlShape += "<centre-of-bottom-base x=\"0.0\" y=\"0.0\" z=\"0.0\" /> ";