clean up local topics logic, add unit tests [#64421808]
move class to open tag instead of close tag (issue identified via unit test)
update resource test to look for latest formatting