Bug 841422 - Follow-up, move template_test.js into sharedtest

https://bugzilla.mozilla.org/show_bug.cgi?id=841422