Refactor video test.