Editing comments and test cases in metrics.py