removes spec sideeffects by stubbing settings