added some testes for errors message