Fix current_app and remove tests