TYRUS-375: An exception is thrown instead of logging the error + a test added