Add integration test for receiving messages

Signed-off-by: Igor Popov <igor.popov89@gmail.com>