fixed tests to work with es 1.2.x