diff --git a/main.go b/main_test.go
similarity index 95%
rename from main.go
rename to main_test.go
index 75da36bf6c9a7bc80b15f38875f14776aa9841b2..c5559dda5de42e5e2a0488f2bca8aae059766353 100644
--- a/main.go
+++ b/main_test.go
@@ -7,13 +7,16 @@ import (
 	"flag"
 	"log"
 	"net"
+	"testing"
 	"time"
 
 	"code.fbi.h-da.de/m.stiemerling/proto-kms/kms"
 	"github.com/google/uuid"
 )
 
-func main() {
+//func main() {
+
+func TestMain(m *testing.M) {
 	// run a self-test if set to yes
 	var selfTesting bool
 	// my own Name
@@ -26,7 +29,7 @@ func main() {
 	// quantumlayer so generated keys can be fetched. This is mainly to simplify
 	// the initial setup process.
 
-	flag.BoolVar(&selfTesting, "selftesting", false,
+	flag.BoolVar(&selfTesting, "selftesting", true,
 		"Will perform self-testing with second quantum link if set to true")
 
 	flag.StringVar(&udpQL1AddrString, "my-address", "[::1]:50900",