test get endpoint returns a dateTime