* test_cosmo.py: Refactor the code and add new functions. * cosmo.el: Add new functions to test suite.