Added test_main for building test-run application