diff --git a/test.sh b/test.sh
index 9114d20908..54e1380319 100755
--- a/test.sh
+++ b/test.sh
@@ -3,6 +3,9 @@
 ROOT=$(readlink -fn $(dirname $0))
 MODULE_PATH="${ROOT}/modules:/etc/puppet/modules"
 
+sudo rm -fr /etc/puppet/modules
+sudo mkdir -p /etc/puppet/modules
+
 if [[ ! -d applytest ]] ; then
     mkdir applytest
 fi