fix bar test to use x coordinate instead of bar dom objects