tests for duplication