Added table source code generation test.
Increased test coverage.