Add tests and fix matrices functions.
Merge branch 'master' of https://github.com/elie-moussy/calibration