diff --git a/madlang.cabal b/madlang.cabal
--- a/madlang.cabal
+++ b/madlang.cabal
@@ -1,5 +1,5 @@
 name: madlang
-version: 0.1.0.4
+version: 0.1.0.5
 cabal-version: >=1.10
 build-type: Simple
 license: BSD3
@@ -16,6 +16,7 @@
 extra-source-files:
     README.md
     test/templates/*.mad
+    test/templates/err/*.mad
 
 source-repository head
     type: git
@@ -50,7 +51,7 @@
     main-is: Main.hs
     build-depends:
         base >=4.9.1.0 && <4.10,
-        madlang >=0.1.0.4 && <0.2
+        madlang >=0.1.0.5 && <0.2
     default-language: Haskell2010
     hs-source-dirs: app
     ghc-options: -threaded -rtsopts -with-rtsopts=-N -O3 -fllvm -optlo-O3
@@ -60,7 +61,7 @@
     main-is: Spec.hs
     build-depends:
         base >=4.9.1.0 && <4.10,
-        madlang >=0.1.0.4 && <0.2,
+        madlang >=0.1.0.5 && <0.2,
         hspec >=2.4.1 && <2.5,
         megaparsec >=5.2.0 && <5.3,
         text >=1.2.2.1 && <1.3,
diff --git a/test/templates/err/bad-sum.mad b/test/templates/err/bad-sum.mad
new file mode 100644
--- /dev/null
+++ b/test/templates/err/bad-sum.mad
@@ -0,0 +1,5 @@
+:define something
+    0.5 "heads"
+    0.7 "tails"
+:return
+    1.0 something
diff --git a/test/templates/err/bad.mad b/test/templates/err/bad.mad
new file mode 100644
--- /dev/null
+++ b/test/templates/err/bad.mad
@@ -0,0 +1,5 @@
+:define something
+    0.5 "heads"
+    0.5 "tails
+:return
+    1.0 something
diff --git a/test/templates/err/circular.mad b/test/templates/err/circular.mad
new file mode 100644
--- /dev/null
+++ b/test/templates/err/circular.mad
@@ -0,0 +1,8 @@
+:define something
+    0.5 "heads"
+    0.5 tails
+:define something
+    1.0 tails
+:return
+    0.5 something
+    0.5 "it doesnt matter b/c this is gonna blow up in our faces anyways"
diff --git a/test/templates/err/sem-err.mad b/test/templates/err/sem-err.mad
new file mode 100644
--- /dev/null
+++ b/test/templates/err/sem-err.mad
@@ -0,0 +1,8 @@
+:define something
+    0.5 "heads"
+    0.5 "tails
+:return
+    1.0 something
+:return
+    0.5 something
+    0.5 "it doesn't matter b/c this is gonna blow up in our faces anyways"
