issue: 359697 increase the percentage of C code coverage by using 'new'
instead of malloc and throw in CTOR's instead of error_creating flag.

Change-Id: I8df36cfeaaa64b2598a85af378417e720f815082