Made flask test case use debug app.