review comments: use factories in test code
review comments: handle case when advanced_settings_url is None.