Rework TestDOM, fix crash

  - Rewrite using Google gtest

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <asakhnik@luxoft.com>

Change-Id: I5e3f74516afa4c5c1a493ecb5d5a6f8bf64bda1f