Use `pytest-flask` package for testing

`pytest-flask` contains some boilerplate code to test flask applications – reuse it.