This seems to be because I moved the function within the object so I could reference it from the test.