diff --git a/HTF.cabal b/HTF.cabal
--- a/HTF.cabal
+++ b/HTF.cabal
@@ -1,5 +1,5 @@
 Name:             HTF
-Version:          0.11.1.0
+Version:          0.11.1.1
 License:          LGPL
 License-File:     LICENSE
 Copyright:        (c) 2005-2012 Stefan Wehr
@@ -209,6 +209,7 @@
                      filepath >= 1.1,
                      directory >= 1.0,
                      regex-compat >= 0.92,
+                     random,
                      HTF
   Default-language:  Haskell2010
   Other-Modules:
diff --git a/Test/Framework/Preprocessor.hs b/Test/Framework/Preprocessor.hs
--- a/Test/Framework/Preprocessor.hs
+++ b/Test/Framework/Preprocessor.hs
@@ -201,7 +201,7 @@
                                     defines defaultCpphsOptions ++
                                     assertDefines hunitBackwardsCompat (mi_htfPrefix info) ++
                                     nameDefines info
-                              , boolopts = (boolopts defaultCpphsOptions) { lang = False } -- lex as text
+                              , boolopts = (boolopts defaultCpphsOptions) { lang = True } -- lex as haskell
                               }
       additionalCode :: ModuleInfo -> String
       additionalCode info =
diff --git a/tests/run-tests.sh b/tests/run-tests.sh
--- a/tests/run-tests.sh
+++ b/tests/run-tests.sh
@@ -6,8 +6,8 @@
 fi
 mkdir -p dist/build/htfpp || exit 1
 cp ../dist/build/htfpp/htfpp dist/build/htfpp || exit 1
-cabal configure || exit 1
-cabal build || exit 1
+cabal-1.16.0 configure || exit 1
+cabal-1.16.0 build || exit 1
 dist/build/test/test || exit 1
 echo "Tests ok"
 
diff --git a/tests/test-HTF.cabal b/tests/test-HTF.cabal
--- a/tests/test-HTF.cabal
+++ b/tests/test-HTF.cabal
@@ -14,7 +14,21 @@
                      directory >= 1.0,
                      filepath >= 1.1,
                      process >= 1.0,
-                     regex-compat >= 0.92
+                     regex-compat >= 0.92,
+                     random,
+                     mtl,
+                     pretty,
+                     containers,
+                     xmlgen,
+                     unix,
+                     array,
+                     old-time,
+                     lifted-base,
+                     monad-control,
+                     HUnit,
+                     QuickCheck,
+                     Diff,
+                     haskell-src-exts
   Default-language:  Haskell2010
   Ghc-options: -threaded
   Hs-source-dirs: ., ..
