rewrite to avoid using Class.getResource() in another test

Any test resource that needs to be accessed as a file can be copied out
to a temporary directory for the duration of a test