Fix all the tests that are failing due to nth-child, and nth-last-child
changes. Also fix string escaping.