feature/allowdupe - fixes #23

Update to #23 to fix a failing test.