simple goals test, added aggregate query in ES service