added init_app, test_init_app, and pytest