fixed testing errors