unit tests for attribute selectors