Changed autoload to protect constants so tests can be run in separate processes; added a shell script that runs the tests