Move tests in `test_locators.py` into more fine-grained files