add arp test scripts from Pingkai, with modifications and fixes