MDL-38267 assign: Better messages for assertions in unit tests