add extra test for checking errors