bugfix and add error hander to spec

- typo at contains
- undefined function (this.jsonData) was called at findAll