fix testing errors