SendMessage with base type issue

Unit Test to reproduce issue #5