Fix breaking test cause by line changes in stack trace