Adds swap utility

Status: **Opened for visibility**
Reviewers: **@scalvert**

## Adds:
- swap selector util: swaps the selected element with a specified tag
- tests

I added some tests using `is`. Also added some other tests to ensure coverage.