Add test for invalid Histogram type re #9260

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>