Code

Redo "add test_cmp function for test scripts"