Add tests for :matches() and ::before