Co-Authored-By: NIC Lin <twedusuck@gmail.com>
And add a bunch of tests for pubsub
And a starting `test_pubsub.py`