Closes issue #1918. Adding unit tests for area chart