ENG-5759: Fix test and create overflow if we cant write.
(cherry picked from commit 957aba8a692146ab079f6d5e955cf0c5d76c47d5)