test what happens on error