computeAvalance unit testing