Added PUB/SUB tests
Signed-off-by: Rack Lin <racklin@gmail.com>