added publish and unpublish tests