Add some tests for the selector node.

This still needs to be tested in actual stylesheets, with e.g. nesting.