TEST: Added unit test to the statistical measures in utils.stats. Also added some more measures.