added unit testing, PercentageCalc tests