WIP: Add more unit tests for modeling

I will add more unit tests for modelling in the coming weeks.

TODO:
* [ ] Run coverage to see what isn't tested yet
* [ ] Test for user-defined model (linear and non-linear) and user-defined fitter (linear and non-linear)

Suggestions welcome.