Fix running tests with elasticsearch