Fixed some testing errors.