fixes tests to handle files packaged in a jar