add unit tests for widget factory
Merge pull request #89 from huchengtw-moz/luke-tv-arch1-unit-tests-for-system-widget-factory

add unit tests for widget factory