StakeCalculator introduced, tests