building test cases for selectors; fine tuned grammar