Refactor video test.

@polesye please review