Fixed duplicate checking test