fixed faulty foreach loop

test_balance.php