add tests for unpublish && exists