balanceTestEngine function

xBalance helper function