Converted test element in tabSpec.js to a new template in test/tpl

In response to this comment in line 11 of `test/testSpec.js`:

    // we might move this tpl into an html file as well...

This commit moves said template to a new file `test/tpl/test_element.html`. To keep the tests passing and the template readable, I changed some of the tests to trim white space from the text before comparing.