update tests to use size instead of length