added test and code to get an html page