Add new unit tests for package based cloud publish