complete test main process