Moved template to a static HTML file and added associated tests