diff --git a/tests/Cubex/CubexTest.php b/tests/Cubex/CubexTest.php
index <HASH>..<HASH> 100644
--- a/tests/Cubex/CubexTest.php
+++ b/tests/Cubex/CubexTest.php
@@ -199,6 +199,8 @@ class CubexTest extends PHPUnit_Framework_TestCase
 
   public function testEnv()
   {
+    putenv('CUBEX_ENV');
+
     $cubex = new \Cubex\Cubex();
     $this->assertEquals('local', $cubex->env());
Remove the enviroment incase it is set somewhere in the OS