Minor fixes to tests and one-way tab, to put a row of total at the bottom