Fixed up imports and added test case for duplicate bug