Remove auto added ID on testing for selector

Fixes #1925