updated BDD tests for publish & subscribe functionality