SendMessage with base type issue

Unit Test to reproduce issue #5
Fixed Issue #5 where message type is also checked
Merge pull request #6 from JoePlant/master

Unit Test to reproduce issue #5