[FIX,TEST,INTERNAL] Fixing bug in app_tests.py in case of errors.
Merge pull request #151 from holtgrewe/fix_app_tests

[FIX,TEST,INTERNAL] Fixing bug in app_tests.py in case of errors.