Creating tests for the charts module

Related to issue #2355