Tests (and resulting bugfixes) for more qtemplate/topic interaction