Update to elasticsearch 0.90.5 and fix test cases.