Add test to verify that generated keys are unique, refs #135