added check for empty messages in pub, updated BDD specs for jasmine