Refactor tests into data files
Create json:html element