test on dictionary  length for global

Change-Id: I66edf527afbc5708504afdca77b69c0f7ca18abd