Use prefs api to get newtab url in test_new_tab.py