Divided equals and hash code tests into single and copy values.