Refactored the way checks are done on the matrices. Now using NumPy
array_equals to do the check, as the function checks for shape and
content.