test that duplicate entries are not allowed