add test for failure