Fix test failure due to change error message text