Added check for error code in test suite