core: always check if the target has a message queue
tests: Add automatic test for msg_send_receive