Removing newline from the end of expected HTML file so that comparison works