Ability calculations utility class and test class