Move tests to elasticsearch test framework

Related to #49.