Revert "Fix publishing and also add integration tests"

This reverts commit f4abb3f39445c7fc015f0bc662ddf37f4e2fcab5.