Added tests for historydata