uniqueness test passing for wrong reason