Add alt attribute to core image nodes

Also update and refactor tests.

Change-Id: I96d08faed42118b713af8011c5d6befb760e65c9
Merge "Add alt attribute to core image nodes"