added array length assertion test