improve the testing errors