fixed main so not called by test script