Use a Mocha stub instead of a struct to build a test double