Ensure that cosmology tests don't have any side-effects
Merge pull request #1718 from astrofrog/fix-default-cosmology-tests

Ensure that cosmology tests don't have any side-effects