Added tests for History CSV writer