functional tests now check basic functionality
* generalizing tests with refactor to use html template