Integration test for encountering an error