Fix Warnings while running test cases.

```
warning: method redefined; discarding old open_party
warning: previous definition of open_party was here
```