Refactored toSelect tests to separate testing selector strings, selector objects, and element references