Some of dougs comments. Not making matrix comparison function for tests.
Changed tests to use matrix comparison function
Deleted confusing comment