Feeds: add unit tests

Also includes a small optimization to the plugin's `selector` var.