diff --git a/tests/metainfo/test_metainfo.py b/tests/metainfo/test_metainfo.py
index 5e91c5c765f0c8d0e6ac273a923a7d600ff21c44..5f6e2725418f57afbf15e58b24422a3d3756ac50 100644
--- a/tests/metainfo/test_metainfo.py
+++ b/tests/metainfo/test_metainfo.py
@@ -675,9 +675,14 @@ class TestM1:
             test_quantity = Quantity(type=np.dtype('int32'))
 
         test_section = TestSection()
-        test_section.test_quantity = 12
-        assert test_section.test_quantity == 12
-        assert type(test_section.test_quantity) is np.int32
+
+        for value in [12, np.array([12], dtype=np.int32)]:
+            test_section.test_quantity = value
+            assert test_section.test_quantity == 12
+            assert type(test_section.test_quantity) is np.int32
+
+        with pytest.raises(ValueError):
+            test_section.test_quantity = np.array([12, 13], dtype=np.int32)
 
     def test_scalar_float(self):
         class TestSection(MSection):