program to run automatically as a test