move pub/sub test in single file
remove callback for pub/sub from main tests
add some docs
new pub/sub api