Add test to historyController