diff --git a/tests/test_transform/test_affine.py b/tests/test_transform/test_affine.py
index f17ad4e7af4ef31182fc7c32529b256e65c255f8..469c6c13d98950e379a9a042467b0a4f4d517dcb 100644
--- a/tests/test_transform/test_affine.py
+++ b/tests/test_transform/test_affine.py
@@ -228,6 +228,7 @@ def test_compose_and_decompose():
 
         scales, offsets, rotations, shears = affine.decompose(
             xform, shears=True)
+
         result = affine.compose(scales, offsets, rotations, shears=shears)
 
         assert np.all(np.isclose(xform, result, atol=1e-5))
@@ -236,8 +237,10 @@ def test_compose_and_decompose():
         # different rotation origin, but we test
         # explicitly passing the origin for
         # completeness
-        scales, offsets, rotations = affine.decompose(xform)
-        result = affine.compose(scales, offsets, rotations, [0, 0, 0])
+        scales, offsets, rotations, shears = affine.decompose(
+            xform, shears=True)
+        result = affine.compose(
+            scales, offsets, rotations, origin=[0, 0, 0], shears=shears)
 
         assert np.all(np.isclose(xform, result, atol=1e-5))