Refactor unit; uniqueness test compares pids of record and found record