XCOMMONS-505: It's possible to have invalid extension overwriting a valid one which have the same feature

(cherry picked from commit 89d1cc722c1db1797393cf760860dbe612a30c83)
XCOMMONS-505: It's possible to have invalid extension overwriting a valid one which have the same feature
* update tests

(cherry picked from commit 26b6f33f24a0938dac24d34829570ecfc1e9dd00)