Fixed tests.

Moved Resource and ProgramCache modules.