Use testresources for example files

The example files were loaded at import time rather than used as
a test fixture.

Change-Id: I3c1ac4db4b269725bf83904c1568a86b45eb7e55
Merge "Use testresources for example files"