Add unit tests for Locator equals and hashCode

Trying to increase some unit test coverage for equals methods and hash code methods.
I think you were trying to make sure the same instance was equal before, but now this is just a duplicate of line 47. You can declare a ById byIdTest = By.id("test") if you want to test sameness equality. This same goes for the rest of the tests it looks like.