test for costs/balances closes #17