unit test main.Exec()