diff --git a/bob/io/base/test.cpp b/bob/io/base/test.cpp
index 9dd3d956666033e0acc95aaf278eb8ec9b2d4ec5..5b4acd551579245eb00a8758ab7e7f4eadc01f32 100644
--- a/bob/io/base/test.cpp
+++ b/bob/io/base/test.cpp
@@ -40,16 +40,19 @@ BOB_TRY
   output.reset();
 
   auto input = h5file(hdf5.string().c_str(), 'r');
-  blitz::Array<uint8_t,1> read_data = input->read<uint8_t,1>(0);
+  blitz::Array<uint8_t,1> read_data(input->read<uint8_t,1>(0));
 
   // Does not compile at the moment
-  blitz::Array<uint16_t,1> read_data_2 = input->cast<uint16_t,1>(0);
+  blitz::Array<uint16_t,1> read_data_2(input->cast<uint16_t,1>(0));
 
   input.reset();
 
   if (blitz::any(test_data - read_data))
     throw std::runtime_error("The CSV IO test did not succeed");
 
+  if (blitz::any(test_data - read_data_2))
+    throw std::runtime_error("The CSV IO test did not succeed");
+
   Py_RETURN_NONE;
 BOB_CATCH_FUNCTION("_test_api", 0)
 }