Add tests

It's not fully automated (before use, you need to change %%_FIX_ME_%% to your elastic search server), but it's better than nothing :smiley:

```'msg:{msg}'.format(msg=msg)```
oops, looks retarded -_-'
I'll fix it later