tests: configure application globally

Tests were failing because setUpClass was being called before
create_app.