adding unit tests for the cfd chart