moving syntax tests into template_element.js

R=arv
BUG=

Review URL: https://codereview.appspot.com/9982043