fixed error tests
Merge pull request #33 from benoitpointet/test/errors

Fix error tests