Add tests to ensure discussion thread creation works as expected