Assert that error message is added