remove unnecessary use of Flask Test App in unit tests