Expose failing test in GenericMessagingTemplateTests

Assertions made in callbacks invoked on separate thread were not
reaching the test framework. This fix ensures failures are detected
and cause tests to fail.