Refactor TestDOM

  - Use Google gtest
  - Fix crash in array creation

Open-webOS-DCO-1.0-Signed-off-by: Anatolii Sakhnik <anatolii.sakhnik@lge.com>
Change-Id: I15cf1963128bb41ffc323fddf66d69bd9d3cff07