app, test_app: fix pep8 issues