Initial refactor, setup promise for nodeview tests