Added tests for MatAtEqual()
Fixed class visibility bug