Improve test for bar-chart-with-number module.

Instead of hard-coding a particular number that is configured in
the module, just check that some bars exist.