added test for plot_distribution where xaxis in string-indexed