Adding initial tests and code to handle web pages