[AI-378] Wrap RuntimeExceptions - fixed test