Split test modules
Fix juju and subprocess modules, update tests