Working with HTML template and related tests