doc/api: chat messages documentation updated
tests: fixed chat tests