Self-testing mutually unbiased bases in the prepare-and-measure scenario