added message sample and unit test