fix some issues in the testing scripts.
fix some issues in the testing scripts.

hemingcui/xtern_with_paxos,hemingcui/xtern_with_paxos,columbia/xtern,columbia/xtern,columbia/xtern,columbia/xtern,hemingcui/xtern_with_paxos,columbia/xtern,hemingcui/xtern_with_paxos,columbia/xtern,hemingcui/xtern_with_paxos