TST: add more regression testing related to https://github.com/numpy/numpy/issues/4733

More test coverage of `matrix_rank` and `linalg.norm` which would have detected https://github.com/numpy/numpy/issues/4733.