Unit test for toplevel invoice (totals, balances and payments)