add a unit test and fix tests.html view