Added test code with barplot visualizations to help analyze how the
preference score is calculated.