Migrates the Contains assertions to the new error format message.

Fixes bugs related to the Contains... with null or empty values.