It seems to me like this test stubs so much that it was unable to catch the error you are correcting here. There should be a test that actually creates a function and tries to call it.