Tests for the bar chart