Moved test html into beforeEach and made stubbing out the template function optional