Remove warnings from asserts in compare test cases