refactored to lessen repetition in test

creates instance of NumericCalculator before running tests