Added spec for getRoundMax and getTotalArr functions