fix bug to allow instance without node and fix tests