fixed GreaterThan bug when dealing with Dates
Unit tests for chart generation