Move shared examples so they are in the correct context
Use double instead of stub