re-arrange wait, assert check in test_settings_wallpaper.py