example should just return has_key

Using
```lua
return has_key
```
Works as expected with `is_not` negative assertions.

The original code:
```lua
return state.mod == has_key
```
doesn't work for negated assertions.