added test.py, tests for app.py