finished unpublish testcase and added appropriate helpers for it