Webvisualize: Added regression tests

* Added new regression tests to 'webvisualize'

* Small refactorings

Signed-off-by: Alberto Rodriguez Peon <alberto.rodriguez.peon@cern.ch>