Copy resources on scheduling and add tests