Complete `test_set_active_window` test case.