fix jar to use new package name
small tests and corresponding bug fixes