Shorten length of unit test file to prevent crash

(cherry picked from commit e12b494921de91fc44c3dc539ba764c862c4e37b)