Add more unit tests for message controller

Add checks for get message return value. Add test for message first.

Change-Id: Id69d483b1fe65c2ea88e367a00b744038ce71f35
Partial-Bug: #1286029
Merge "Add more unit tests for message controller"