#68 - add unit tests (there are incorrect positions in error messages)