Added resources and init_worker with test