Fix app_test.py from issue #43

Fix app_test.py from issue #43. We also need a test for an active application.