Move tests to elasticsearch test framework

Relative to #10.