diff --git a/sandi.cabal b/sandi.cabal
--- a/sandi.cabal
+++ b/sandi.cabal
@@ -1,5 +1,5 @@
 name: sandi
-version: 0.2.2
+version: 0.2.2.1
 license: BSD3
 license-file: LICENSE
 cabal-version: >= 1.8
@@ -75,6 +75,7 @@
         Codec.Binary.UuTest
         Codec.Binary.XxTest
         Codec.Binary.YencTest
+        Codec.TestUtils
 
 benchmark sandi-bench
     type: exitcode-stdio-1.0
diff --git a/test-src/Codec/TestUtils.hs b/test-src/Codec/TestUtils.hs
new file mode 100644
--- /dev/null
+++ b/test-src/Codec/TestUtils.hs
@@ -0,0 +1,6 @@
+-- Copyright: (c) Magnus Therning, 2013
+-- License: BSD3, found in the LICENSE file
+
+module Codec.TestUtils where
+
+fromRight (Right a) = a
