Add spec tests for bar graphs