Fix negative test result in sm2 test