update test.html, minor bug fixes