Fix list comprehension in test_refresh_all