Corrected a few small errors in testing code.