added test cases for compare()