fix alt tags and add test. Closes #1341