BS-2787
Fix addJarEntry + tests