Fix failing tests
Remove unnecessary annotation
Add @CompileStatic
replace java.io.File with java.nio.file.*