Fix compile error in HunterView and add tests for getHistory