Replacing integration tests with rest tests and unit tests, thus removing integration tests that require start of a new cluster. Removing unused testing methods Original commit: elastic/x-pack-elasticsearch@265966d80c