Fix error messages on tests