Add test for repeat expr in statics.