added video factory unit tests
added test for directive