Add some tests for html builder and analyses layer