fix tests by mocking flask_app.config as dict. require specific versions of test dependencies.