Test routines added

Added the test routines from the exercise tool.