Move tests to elasticsearch test framework

Closes #16.
(cherry picked from commit 6aa36aa)