Adds unit tests and better html browser tests.