more generic and parameterized
remove debug
pass dates correctly
add test name to html