Avoid extra function call.
Update assertion message check.