Offline msg limit is related to the recipient
Added sql tests for offline message support

* Missing receive and response tests