Added a simple connect, subscribe and publish example (test)