tests: add test that shows sequence of received messages
test_thread_msg_seq: add missing main() return statement
Merge pull request #817 from kaspar030/tests_msg_sequence

tests: add test that shows sequence of received messages