Add tests for html and json generator