XWIKI-9001: Chart Macro generates an incorrect URL instead of an image on sub-wikis
XWIKI-9001: Chart Macro generates an incorrect URL instead of an image on sub-wikis
* Fix tests and moved one test to use Mockito