diff --git a/test/tests.jl b/test/tests.jl
index 4ded4dbf49dfccd6e7746926f24d7e5064124731..c7b64cba5eaa43740dd69afbaf68bf7a99b14d6a 100644
--- a/test/tests.jl
+++ b/test/tests.jl
@@ -1,8 +1,15 @@
+module SystemIdentificationTests
+export run_tests()
 using SystemIdentification
-@assert isa(1,Polynom)
-@assert isa(1.0,Polynom)
-@assert isa([1.0; 1.0],Polynom)
-@assert isa(1.0,PolynomMatrix)
-@assert isa(1,PolynomMatrix)
 
-ar(collect(1:5.0),1,bias=true)
+function run_tests()
+    @assert isa(1,Polynom)
+    @assert isa(1.0,Polynom)
+    @assert isa([1.0; 1.0],Polynom)
+    @assert isa(1.0,PolynomMatrix)
+    @assert isa(1,PolynomMatrix)
+
+    #ar(collect(1:5.0),1,bias=true)
+end
+
+end