title: Magento: Mage::getModel('catalog/category')->load($id) not working
body: <p>Mage::getModel('catalog/category')->load($id) is not working (no data is loaded, and getId() is empty).</p>
  
  <p>but if I do this:</p>
  
  <pre><code>     $collection = Mage::getModel('catalog/category')-&gt;getCollection();
       foreach($collection as $category) {
           if($category-&gt;getId() == $id) {
               echo "it has been founnnd!!!";
  
           }
       }
  </code></pre>
  
  <p>it works?</p>
  
  <p>I should mention I am running this code through cli with phpunit tests so its bootstrapped.  My guess is that there might be an issue with scope?</p>