add tests and html to display output functionality