fixes to get test running
Add logging to ES