Add a test for selectors simplification