fix on_video_added event to show error messages.
fix some broken unit tests.