Merge pull request #243 from shermdog/unit-tests

Unit tests up to 96%
100% UT for table.py
UT for facts folder
UT coverage now at 98%
Merge pull request #244 from vnitinv/unit-tests

Unit tests, coverage at 98%
factory/view up to 95%
Device unit tests 100%