left checking of duplicated attributes declared without adding them
tests for issue 498. Closes #498