Added GetHistoryTask and unit tests