Add coverage and run tests within an application context
Use current_app everywhere