fixed errors on tests