tidies <ws> handling in nth-child selectors; more tests