test for repeated keys