Added publish callback tests