Add table for output check.
fix empty slice handling