Add Karma testing to Mean Median and Mode

Karma testing working. Now to refactor.