Added another test case for KDD, fix for not writing history in manual mode