Resource duplication check + tests
TW-28409