Set the topic as the return of #toString() in tests.

[ci skip]