Use MemoryStream instead fo files for validating results