move test app
require Flask-FlatPages >= 0.6
add requirements for testapp
add tests