Fix scoping bug in message_buffer::get_message, fix clone bug, get tests
compiling