Tests for PreemptiveResource.