unit test for matrix comparison error propagation, fdo#87237

Change-Id: Id02f169b111945673a16d0c852940c805aa89319
(cherry picked from commit 6c41a1272e43a3e3b785724991837b597dbf00ef)