Make assertions more robust.