Added tests for es client. Added tests for demand model.