batchtest

add batchtest in main.go
mode 0: single mode
mode 1: multi-node mode