Cleaned test routine.