fix packaging and set up tests