Make test using uncertainties optional