ve.Element: Add unit tests

Follows-up c2defc9.

Change-Id: I2045e40567de01f6b44beffe760b6a6287754f75
Merge "ve.Element: Add unit tests"