implemented TableSpec
fix NPE in test
dep version update
fixed bugs introduced while implementing tablespec
optional table spec implemented