Added unit test and integration tests to NodeService and DatastreamService.