Update class tests.

Change the Calculator class to use a parametric field and add notes on
abstract methods.