change tests to match post 1.0 elasticsearch
check for id$ afterwards.
Merge pull request #3 from Vertice/master

check id$ after id