Add tests for AgeCalculator and refactor.