Unittested all current functions in compare.py