Whitespaces and StyleCop issues
Improved Assert statements
Tried to fix wrong upload length calculation