This fixes #7752.  All devices including tests can now be published or unpublished.