delete left-over test artifact jdr_...zip on windows and improve tests

On Windows the JDR module will create a test ZIP file in the base directory, not close it but delete it.

The delete will fail on windows, this patch will fix this. This mainly keeps the git tree clean after a build.

This patch will also make sure the file is not created in a source control managed directory anyway by using `setOutputDirectory("target")`. This way the test can assert the relative output path name as well.