Add test case for target duplication.