Integration test for posting a message

/cc @ulyanuha @kekuh