pull tests from Caleb's Patch 2

I merged arcapi.py in previous merge but I didn't get arcapi_test.py changes so let's try it again.