In tests, turned 'settings' and 'setup_app' into fixtures to ease overriding.