Testing a solution to the duplicate cases