added table name to index error messages
style
tests