Update error message on tests