added tests for barplot()