check for valid table index defaults

and test case