Adds Fitting class initialization to make most of the tests pass.