Test for testing invalid dict field value

Added a test which fails for me in strange way. I would suspect that the test succeeds but it fails with:

```
TypeError: 'bool' object is not iterable
```