Add exceptions for invalid table slices and tests