check for valid table index defaults

and test case
Merge branch 'master' into solidworks