Add test for bar_chart_with_number module.

The test for date period is not particularly elegant: we probably
want to look at how we test this across the whole application.