Setup environment and implemented simple test of publish/subscribe API