diff --git a/test/test_class_factory.rb b/test/test_class_factory.rb
index <HASH>..<HASH> 100644
--- a/test/test_class_factory.rb
+++ b/test/test_class_factory.rb
@@ -5,7 +5,7 @@ require 'wbem'
 
 class TestClassFactory < Test::Unit::TestCase
   def setup
-    @factory = Wbem::ClassFactory.new DIR
+    @factory = Wbem::ClassFactory.new File.join(DIR, "wbem")
   end
   #def teardown
   #end
Test: Expect generated classes below test/wbem