reture true when there is no compare value
updated mocha test cases