ENH: Add Test 5.
BUG: Fix issue in matrix validation at check point 3.3 in Test 5.