Resource Renaming

Renamed resource name hadExpectedLength -> hadLength, and hadExpectedSize -> hadSize.