fixed pubsub all + tests #42

Signed-off-by: Valentin Zberea <valentin.zberea@gmail.com>