making the spending test independent from the addMoney feature