To check speedo accuracy you could...
Use a GPS for comparison?
Follow a mate in a car/on a bike?
Time yourself over a measured distance at a constant indicated speed?
Stick your bike on a rolling road?
Find your local community speedwatch's SAM and ride through it?
Go too fast through a speed camera?
Or, do you mean, how do you check the speed sensor output in the diagnostic mode?