Assert the number of modules before and after republishing a module