Moved wait for elasticsearch to start into assertion that messages are as expected