First tests for errors handling.