Add table footers

fix tests as well.