main moved to test.go