Fix intermittently failing video js tests

@wedaly @polesye