Identified the conditions causing Unit Test failures. New Unit Test captures them & allows the memory stream max size to be returned to a more reasonable value