Fix tests on ES build.