fixed up register process in index.html, updated tests and fixed typos that were causing some tests to fail.