add collection size assertions in unit tests