Add test asccording with last error. @SergNikitin Please look at it ;)