Discrimination and certification of unknown quantum measurements