Cleaned up tests

We need to allow elasticsearch requests to webmock. Only log
elasticsearch requests in development.