added location name to tests.py
updated error checking in ca_scrpts.py