Add tests and overload `eq` for `CSRMatrix`

* Add tests for `csr_has_canonical_format()`
* Add a test for the exception when scaling factor is zero
* Overload `eq()` for CSRMatrix class