Tests for all selector types.

Fixed ID-searching in nodes.

Added testing for Safari 5 and Android 4.2