fix contract test case