[test] moved test_main