refactor(tests): move equivalency function to the elements spec file

It makes more sense there than in locators.