Core: fix a typo in warning category

DeprecationWarning instead of warnings.DeprecationWarning
Core: add unit test case for FedMsgContext.send_message

it tests that send_message()
- deprecation warning is properly displayed
- it calls publish() with correct arguments