Tests: Test attribute selectors in smaller units

Closes gh-302