testing deep equality