Fixing the coverage reports for the unittests and adding support for TestR.

Now they work better and also include coverage for the tests invoked by testr.

Change-Id: Ia48cf4664ce9ec46f7ef21929b0d87cad4149580
Fixes: bug #1103637
Merge "Fixing the coverage reports for the unittests and adding support for TestR."