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: