Tests: Test attribute selectors in smaller units

cc @timmywil 

I'll probably land this tomorrow.