added additional tests for errors