Reorganize the tests/ folder to use CommonCTest and benefit from the code coverage report.

Change-Id: I6c20200ea708669d0470a0e9685bd7ad51e860ba