test for error, too