passing test with simple fit function