inserted publisher test into publish function
publish function is found now.

several warning fixes
remove const from const value of message pointer of callback