Bug 846845 - [MMS][SMS][Tests] add tests and simplify Utils. r=julien

Signed-off-by: Rick Waldron <waldron.rick@gmail.com>