key duplicate test with library
