add test.html, clean up a few conversion bugs