use stub instead of spy