Merge pull request #242 from vnitinv/unit-tests

Unit tests
Fixed factory/table.py for 2.6 format
Updates up to 95% coverage
factory_cls 100%
Merge pull request #243 from shermdog/unit-tests

Unit tests up to 96%
100% UT for table.py