Added View\Smarty::getSmartyObject function
Added more unit tests