add test for simple error case