I put together two testers which allow them to quickly hook up a servo or a motor and test it. The testers allow full range of servo motion and full range of motor speeds from full forward to full reverse. Both of the testers use exactly the same circuity; a 555 timer with a variable resistor using a potentiometer to set the pulse width. For the servo tester, this PWM signal directly controls the position of the servo. For the motor tester, the PWM signal is sent to a Parallax HB-25 Motor Controller (not cheap, but I had a few lying around already). The video below shows an oscilloscope capturing a PWM pulse output from an Arduino. You can see the width of the pulse varying over time.

A breadboard prototype worked fine, so I used Eagle CAD to make boards for each of the testers. The EagleCAD files can be downloaded from https://sites.google.com/site/rampantrobots/servotester .
The boards for the servo and motor tester are almost identical, except that the servo requires a voltage of ~5V, and the motor requires a voltage of 12V. I wanted both to run off the 12V batteries we use for robotics. So I used a LM7805 for both boards. For the servo board, the 5V output also powers the servo, while for the motor board the 12V supply is connected directly to the HB-25 input. For the servo tester, a series of capacitors of different values is used to smooth the 5V line because the servo pull might otherwise cause it to drop too low for the 555 timer to work correctly. The bottoms of each board show the similarities and differences.
The boards work great. Check out the movies below which show them in action.