Fix tests for changed getResource calls