cmake: Add more tests for elements

Change-Id: I470ffbf5f08201a84cf8e8f6f0089d1791ff5e11