testing length of dict