Added tests for chartservice