Use Exception instead of Mage_Core_Exception in bootstrap.php
Added test for resource model mocking