add some test cases for the pub sub system