Code style is a little weird here and in other parts of the file -- don't leave spaces inside the parens, but do leave them around operators. So this should be:
```
assert(persisted.filter(_ == 1).count() == 5)
```
for example.