fix and add new unit tests, fix on_video_deleted eventhandler bug