Added tests for using budgetFactory in node