Fix bug in new code when topicSubs is undefined.
Repair broken specs. And add some new ones.