Test of mutually unbiased bases for six-dimensional photonic quantum systems