Testing getAmountBetweenDates