Port CMakeLists.txt to ecm_add_test

Simplify tests/CMakeLists.txt by using ecm_add_test cmake macro

REVIEW: 120237

Signed-off-by: Laurent Navet <laurent.navet@gmail.com>