Updated apptest.py to match changes on branch 'master'.