stubbing needs to be done correctly