Clean up bad results coming from cohort_percentages method, add tests for cohort_percentages, update tests to better catch errors thrown